﻿using DotNetCoreApi.Filter;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;

namespace DotNetCoreApi.Controllers
{
    /// <summary>
    /// 基础控制器
    /// </summary>
    [TypeFilter(typeof(ResultFilter))]//响应拦截器
    [TypeFilter(typeof(ExceptionFilter))]//异常拦截器
    public class BaseController : ControllerBase
    {
    }
}
